package org.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author cgwb6
 * @description 动态可视化线城市
 * @date 2025/9/25 17:00
 */
@RequestMapping("/dynamic")
@RestController
public class DynamicTPController {

    @Resource
    private ThreadPoolExecutor dtpExecutor1;

    @GetMapping ("/dtpExecutor")
    public void dtpExecutor() {
        dtpExecutor1.execute(() -> System.out.println("test"));
    }
}
